home *** CD-ROM | disk | FTP | other *** search
/ Power DOS 1996 July / Power DOS - July 1996.iso / sound / c_labs / awe / adip.exe / ADIP02.ZIP / WINDOWS / SAMPLE / ERRORMSG.H < prev    next >
C/C++ Source or Header  |  1994-07-08  |  3KB  |  75 lines

  1. /*
  2. ==============================================================================================================
  3.    Name:             ERRORMSG.H
  4.  
  5.    Description:      Error message header file for application interfacing with AWEMAN.DLL.
  6.                      This header file contains the possible error code return by the AWEMAN.DLL. The
  7.                      error code will be process by the application that accesses the AWEMAN.DLL
  8.                      via its message entry point function.
  9.                      This header must be included in the application for de-crypting the error code
  10.                      return by the DLL message function.
  11.  
  12.    Purpose:          Header file meant for any application that wishes to programme the APIs provided by 
  13.                      AWEMAN.DLL.
  14.                      
  15.    Author:           E.W. Khor
  16.                      Copyright 1993,94 Creative Technology Ltd.
  17.  
  18.    Date:             version 1.0    -     27th Jan 1994
  19.  
  20.    Revision:
  21.    
  22. ==============================================================================================================
  23. */
  24. #ifndef  _ERRORMSG_H
  25. #define     _ERRORMSG_H
  26.  
  27. /*
  28. --------------------------------
  29.       Error Category
  30. --------------------------------
  31. */
  32. #define     BASE_INVALID                     100L
  33. #define     BASE_CONTENTION                  200L
  34. #define     BASE_EXIT                        800L
  35. #define     BASE_UNDEFINE                    900L
  36.  
  37. /*
  38. --------------------------------
  39.       No Error
  40. --------------------------------
  41. */
  42. #define     AWE_NO_ERR                       0L
  43. #define     AWE_ERR_UNDEFINE_ERROR           (BASE_UNDEFINE+1)
  44.  
  45. /*
  46. --------------------------------
  47.       Error Messages
  48. --------------------------------
  49. */
  50. #define     AWE_ERR_DEVICE_DRV_INVALID       (BASE_INVALID+1)
  51. #define     AWE_ERR_USERID_INVALID           (BASE_INVALID+2)
  52. #define     AWE_ERR_EFXT_INVALID             (BASE_INVALID+3)
  53. #define     AWE_ERR_EFXV_INVALID             (BASE_INVALID+4)
  54. #define     AWE_ERR_SBANK_INVALID            (BASE_INVALID+5)
  55. #define     AWE_ERR_UBANK_INVALID            (BASE_INVALID+6)
  56. #define     AWE_ERR_PATHNAME_INVALID         (BASE_INVALID+7)
  57. #define     AWE_ERR_USER_OBJ_INVALID         (BASE_INVALID+8)
  58. #define     AWE_ERR_INSTR_INVALID            (BASE_INVALID+9)
  59. #define     AWE_ERR_MSG_INVALID              (BASE_INVALID+10)
  60. #define     AWE_ERR_ACCESS_NOT_PERMITTED     (BASE_INVALID+11)
  61. #define     AWE_ERR_VERSION_INVALID          (BASE_INVALID+12)
  62.  
  63. #define     AWE_ERR_DLL_BUSY                 (BASE_CONTENTION+1)
  64. #define     AWE_ERR_DEVICE_BUSY              (BASE_CONTENTION+2)
  65. #define     AWE_ERR_RESOURCE_INSUFFICIENT    (BASE_CONTENTION+3)
  66. #define     AWE_ERR_SYSMEM_INSUFFICIENT      (BASE_CONTENTION+4)
  67. #define     AWE_ERR_DRAM_INSUFFICIENT        (BASE_CONTENTION+5)
  68. #define     AWE_ERR_EFXT_CHANGE_NOT_ALLOWED  (BASE_CONTENTION+6)
  69.  
  70. #define     AWE_ERR_ACTIVATE_BOB             (BASE_EXIT+1)
  71. #define     AWE_ERR_ACTIVATE_CONTROLPANEL    (BASE_EXIT+2)
  72. #define     AWE_ERR_ACTIVATE_EFX_SETUP       (BASE_EXIT+3)
  73.  
  74. #endif   /* _ERRORMSG_H */
  75.